import Vue from 'vue';

import App from './App'
import router from './config/router';
import store from './store'
import './utls';
import './config/ui-config';
import './assets/css/base.scss';
import {ipcRenderer} from 'electron';
import api from "./config/api";
import regularConfig from "./config/regular-config";
import './components';

if (!process.env.IS_WEB) Vue.use(require('vue-electron'));
Vue.config.productionTip = false;
// 解决控制台黄色警告：electron security warning
process.env['ELECTRON_DISABLE_SECURITY_WARNINGS'] = 'true';
Vue.prototype.ipc = ipcRenderer;
Vue.prototype.api = api;
Vue.prototype.regularConfig = regularConfig;
Vue.prototype.$bus = new Vue({
    router,
    store,
    render: (h) => h(App),
}).$mount("#app");
